package lschgcdev.apis;
import java.util.*;

public class LayerStructure<T extends Layerable> extends DataUser<Object> {
	
	private  LinkedHashMap<String, T> layerList = new LinkedHashMap<String, T>();
	public  LinkedList<T> layerVisible = new LinkedList<T>();
	
	public void addLayer(String layer_ID, T layer){
		layerList.put(layer_ID, layer);
	}
	
	public void show(String...layersOrder){
		for(String ID : layersOrder){
			layerVisible.addLast(layerList.get(ID));
			layerList.get(ID).setEnable(true);
		}
	}
}
